<?php

namespace app\api\model;

use think\Model;

/**
 * Cate
 */
class Cate extends Model
{
    // 表名
    protected $name = 'cate';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;



    public function getScenicCate(){
        $list = self::where(['status' => 1])->field('id,name')->select();
        return api_message($list);
    }
}